<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
	<title>${obj.title}</title>
</head>

<body>
<div class="container bs-docs-container">

<div class="article-wrap">
<h1 class="page-header">${obj.title}</h1>

<div class="article-author">
    <span class="author-name">${obj.author}</span>
    <i class="icon icon-line"></i>
    <span class="article-time">${obj.dtCreate}</span>
    <span class="article-share">收藏12</span>
    <span class="article-pl">评论4</span>
</div>

<div class="article-content-wrap">
<p>
${obj.content}
</p>

<c:forEach items="${robjs}" var="ro">
	<c:choose>
		<c:when test="${ro.suffix =='jpg' || ro.suffix =='png' || ro.suffix =='jpeg' }">
			<figure class="figure">
			  <img src="/fopen?fp=${ro.path}" class="img-responsive center-block" >
			  <figcaption style="text-align:center;color:rgb(153, 153, 153);">${ro.title}</figcaption>
			</figure>	
			<p><br></p>
			<p>${ro.content}</p>
		</c:when>
	</c:choose>
</c:forEach>
	
<img class="img-responsive center-block" src="/static/tpl/article/wx.jpeg"/>
</div>

<c:forEach items="${robjs}" var="ro">
	<c:if test="${ro.suffix !='jpg' && ro.suffix !='png' && ro.suffix !='jpeg' }">
	<div class="cy-section-inner">                             
		<a target="_blank" href="/fopen?fp=${ro.path}">
		<div class="cy-inner-title">${ro.title}</div>
		</a>
	</div>
	</c:if>
</c:forEach>


<c:if test="${not empty obj.tag}">
<c:set var="tags" value="${fn:split(obj.tag,';')}" />
<div class="tag-box ">
    <ul class="transition">
    <c:forEach items="${tags}" var="tag">
     	<li class="transition">${tag}</li>
    </c:forEach>
    </ul>
</div>
</c:if>

</div>
</div>
</body>
</html>


